package com.hmp.recruit.common.vo;

import java.util.HashMap;
import java.util.Map;

import org.apache.ibatis.type.Alias;

@Alias("sparam")
public class SearchParam {

	/** sql分页开始位置 */
	private int start = 0;

	/** sql分页条数 */
	private int limit = 20;

	/** 总条数 */
	private int total = 0;

	/** 当前页码 */
	private int page = 0;

	public int getEnd() {
		return start + limit;
	}

	/** 查询参数Map */
	private Map<String, Object> sp = new HashMap<String, Object>();

	public int getStart() {
		start = (page - 1) * limit;
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public Map<String, Object> getSp() {
		return sp;
	}

	public void setSp(Map<String, Object> sp) {
		this.sp = sp;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

}
